﻿using Cl.Entity.BaseEntity;
using Cl.Entity.DataBaseEntity.Goods;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Entity.DataBaseEntity.Shops
{
    [SugarTable("Shops_BaseShop")]
    public class BaseShop : EntityBaseComplete
    {
        public string Title { get; set; } = string.Empty;

        public string Description { get; set; } = string.Empty;

        public string Address { get; set; } = string.Empty;


        public string IdCardFrontPath { get; set; } = string.Empty;

        public string IdCardBackPath { get; set; } = string.Empty;

        /// <summary>
        /// 营业执照
        /// </summary>
        public string BusinessLicensePath { get; set; } = string.Empty;

        /// <summary>
        /// 多个图片用,隔开存储；
        /// </summary>
        public string ShopPicturePath { get; set; } = string.Empty;

        /// <summary>
        /// 营业时间
        /// </summary>
        public string BusinessHours { get; set; } = string.Empty;


        /// <summary>
        /// 是否营业
        /// </summary>
        public bool IsOpenBusiness { get; set; }

        /// <summary>
        /// 店铺所属人
        /// </summary>
        public int UserId { get; set; }

        public DateTime AuditTime { get; set; }

        public int AuditUserId { get; set; }

        /// <summary>
        /// 管理员审批后可以正常使用
        /// </summary>
        public string AuditState { get; set; } = string.Empty;

        public string AuditRemark { get; set; } = string.Empty;





        [Navigate(NavigateType.OneToMany, nameof(BaseGoods.ShopId))]
        public List<BaseGoods>? BaseGoodsList { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(GoodsGroup.ShopId))]
        public List<GoodsGroup>? GoodsGroupList { get; set; }
    }
}
